<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- ObjectAdapter.qdoc -->
  <title>ObjectAdapter Class | OpenVisa 0.10.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">OpenVisa 0.10.0</a></li>
<li><a href="openvisa-module.html" translate="no">OpenVisa</a></li>
<li>ObjectAdapter</li>
<li id="buildversion">OpenVisa 0.10.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">ObjectAdapter Class</h1>
<span class="small-subtitle" translate="no">class <a href="openvisa-module.html" translate="no">OpenVisa</a>::ObjectAdapter</span>
<!-- $$$ObjectAdapter-brief -->
<p><a href="openvisa-object.html" translate="no">OpenVisa::Object</a>桥接基类，方便通信接口分类. <a href="#details">More...</a></p>
<!-- @@@ObjectAdapter -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;ObjectAdapter.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="openvisa-object-commoncommand.html" translate="no">OpenVisa::Object::CommonCommand</a></p>
</td></tr>
</table></div>
<ul>
<li><a href="openvisa-objectadapter-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Object::Attribute &amp;</td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#attribute" translate="no">attribute</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Object::CommonCommand &amp;</td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#commonCommand" translate="no">commonCommand</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> OpenVisa::Object &amp;</td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#object" translate="no">object</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::string </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#query" translate="no">query</a></b>(const std::string &amp;<i>fmt</i>, const Args &amp;... <i>args</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::tuple&lt;std::string, bool&gt; </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#read" translate="no">read</a></b>(unsigned long <i>blockSize</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> std::string </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#readAll" translate="no">readAll</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#send" translate="no">send</a></b>(const std::string &amp;<i>fmt</i>, const Args &amp;... <i>args</i>)</td></tr>
</table></div>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#ObjectAdapter" translate="no">ObjectAdapter</a></b>(OpenVisa::Object &amp;<i>object</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="openvisa-objectadapter.html#dtor.ObjectAdapter" translate="no">~ObjectAdapter</a></b>()</td></tr>
</table></div>
<!-- $$$ObjectAdapter-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@ObjectAdapter -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$ObjectAdapter[overload1]$$$ObjectAdapterOpenVisa::Object& -->
<h3 class="fn" translate="no" id="ObjectAdapter"><code translate="no">[protected] </code>ObjectAdapter::<span class="name">ObjectAdapter</span>(<span class="type"><a href="openvisa-object.html" translate="no">OpenVisa::Object</a></span> &amp;<i>object</i>)</h3>
<p>构造函数 <i translate="no">object</i>.</p>
<!-- @@@ObjectAdapter -->
<!-- $$$~ObjectAdapter[overload1]$$$~ObjectAdapter -->
<h3 class="fn" translate="no" id="dtor.ObjectAdapter"><code translate="no">[virtual protected] </code>ObjectAdapter::<span class="name">~ObjectAdapter</span>()</h3>
<p>析构函数.</p>
<!-- @@@~ObjectAdapter -->
<!-- $$$attribute[overload1]$$$attribute -->
<h3 class="fn" translate="no" id="attribute"><span class="type"><a href="openvisa-object-attribute.html" translate="no">Object::Attribute</a></span> &amp;ObjectAdapter::<span class="name">attribute</span>()</h3>
<p><a href="openvisa-object.html#attribute" translate="no">OpenVisa::Object::attribute</a> 的透传.</p>
<!-- @@@attribute -->
<!-- $$$commonCommand[overload1]$$$commonCommand -->
<h3 class="fn" translate="no" id="commonCommand"><span class="type"><a href="openvisa-object-commoncommand.html" translate="no">Object::CommonCommand</a></span> &amp;ObjectAdapter::<span class="name">commonCommand</span>()</h3>
<p><a href="openvisa-object.html#commonCommand" translate="no">OpenVisa::Object::commonCommand</a> 的透传.</p>
<!-- @@@commonCommand -->
<!-- $$$object[overload1]$$$object -->
<h3 class="fn" translate="no" id="object"><span class="type"><a href="openvisa-object.html" translate="no">OpenVisa::Object</a></span> &amp;ObjectAdapter::<span class="name">object</span>()</h3>
<p>返回桥接的 object 对象.</p>
<!-- @@@object -->
<!-- $$$query[overload1]$$$queryconststd::string&constArgs&... -->
<h3 class="fn" translate="no" id="query">template &lt;typename Args&gt; <span class="type">std::string</span> ObjectAdapter::<span class="name">query</span>(const <span class="type">std::string</span> &amp;<i>fmt</i>, const <span class="type">Args</span> &amp;... <i>args</i>)</h3>
<p><a href="openvisa-object.html#query" translate="no">OpenVisa::Object::query</a> 的透传 <i translate="no">fmt</i>, <i translate="no">args</i>.</p>
<!-- @@@query -->
<!-- $$$read[overload1]$$$readunsignedlong -->
<h3 class="fn" translate="no" id="read"><span class="type">std::tuple</span>&lt;<span class="type">std::string</span>, <span class="type">bool</span>&gt; ObjectAdapter::<span class="name">read</span>(<span class="type">unsigned</span> <span class="type">long</span> <i>blockSize</i>)</h3>
<p><a href="openvisa-object.html#read" translate="no">OpenVisa::Object::read</a> 的透传 <i translate="no">blockSize</i>.</p>
<!-- @@@read -->
<!-- $$$readAll[overload1]$$$readAll -->
<h3 class="fn" translate="no" id="readAll"><span class="type">std::string</span> ObjectAdapter::<span class="name">readAll</span>()</h3>
<p><a href="openvisa-object.html#readAll" translate="no">OpenVisa::Object::readAll</a> 的透传.</p>
<!-- @@@readAll -->
<!-- $$$send[overload1]$$$sendconststd::string&constArgs&... -->
<h3 class="fn" translate="no" id="send">template &lt;typename Args&gt; <span class="type">void</span> ObjectAdapter::<span class="name">send</span>(const <span class="type">std::string</span> &amp;<i>fmt</i>, const <span class="type">Args</span> &amp;... <i>args</i>)</h3>
<p><a href="openvisa-object.html#send" translate="no">OpenVisa::Object::send</a> 的透传 <i translate="no">fmt</i>, <i translate="no">args</i>.</p>
<!-- @@@send -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> OpenVisa
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
